import React, { Fragment } from "react";
import TopNavBar from "@/components/TopNavBar";
import { List } from "antd-mobile";
import { useHistory } from "react-router-dom";
const Item = List.Item;

export default function Center(props) {
  const history = useHistory();
  return (
    <Fragment>
      <TopNavBar {...props}>个人中心</TopNavBar>
      <List>
        <Item arrow="horizontal" onClick={() => history.push("/fav")}>
          查看收藏
        </Item>
        <Item arrow="horizontal" onClick={()=>history.push('/fav')}>浏览记录</Item>
      </List>
    </Fragment>
  );
}
